(command_loop_1): Clear force_start of selected_window
authorRichard M. Stallman <rms@gnu.org>
Sun, 28 Mar 1993 08:27:34 +0000 (08:27 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 28 Mar 1993 08:27:34 +0000 (08:27 +0000)
after reading each key sequence.

src/keyboard.c

index 468d9703fe08032903e51f0581e7e2b086624af4..2f8689ef13ef4690e8fafd576844d29b2f88acdb 100644 (file)
@@ -957,6 +957,11 @@ command_loop_1 ()
 
       last_command_char = keybuf[i - 1];
 
+      /* If the previous command tried to force a specific window-start,
+        forget about that, in case this command moves point far away
+        from that position.  */
+      XWINDOW (selected_window)->force_start = Qnil;
+
       cmd = read_key_sequence_cmd;
       if (!NILP (Vexecuting_macro))
        {